package br.edu.ufabc.gtrnp.helppo.presentation.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;

/**
 * @struts.action name="homeAction" path="/home" scope="request"
 *                parameter="action" validate="false"
 * 
 * @struts.action-forward name="home" path="/jsp/home.jsp"
 * @struts.action-forward name="homeNaoLogado" path="/jsp/homeNaoLogado.jsp"
 * 
 */
public class HomeAction extends DispatchAction {
	@Override
	protected ActionForward unspecified(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		return mapping.findForward("home");
	}
	
	public ActionForward usuarioNaoLogado(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		return mapping.findForward("homeNaoLogado");
	}
}
